package com.smasher.certificate

import com.smasher.certificate.extension.JksPluginExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import com.smasher.certificate.register.TaskRegister

class CertificatePlugin implements Plugin<Project> {

    @Override
    void apply(Project project) {

        project.extensions.create("JKSParse", JksPluginExtension)
        // 注册extractApkSignature任务
        project.afterEvaluate {
            TaskRegister.registerApkTask(project)
            TaskRegister.registerJKSInfoTask(project)
        }
    }


}